local key = KEYS[1]
local size = redis.call('get',key)
if size then
  size = size
else
  size = 0
end
if(tonumber(size)<1000) then
    return '1'
else
    return '-1'
end